package com.example.homework1.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

@RestController
public class HelloController {

    @GetMapping("/Hello")
    public String hello() {
        return "Hello, World!";
    }
    @GetMapping  ("/random")
    public int random(){
        Random random = new Random();
        return  random.nextInt(1000);
    }
    @GetMapping("/square/02")
    public int square(){
        return 4*4;
    }
}